.gradient-border {
    position: relative;
    transition: all .3s;
    --border-color: rgb(56 255 66 / 50%);
    --border-radius: 3px;

    &::before,
    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        transition: all .5s;
        animation: clippath 5s infinite linear;
    }

    &::after {
        animation: clippath 5s infinite -2.5s linear;
    }
}

@keyframes clippath {
    0%,
    100% {
        clip-path: inset(0 0 95% 0);
    }

    25% {
        clip-path: inset(0 95% 0 0);
    }

    50% {
        clip-path: inset(95% 0 0 0);
    }

    75% {
        clip-path: inset(0 0 0 95%);
    }
}